import mitt from 'mitt'

interface Employee {
    id: number
    name: string
    phone: string
    address: string
    services: string[]
    workPeriods: string[]
    serviceCount: number
    status: boolean
}

type Events = {
    selectTime: object,
    selectHuman: object,
    upDateTab: void,
    'staff-added': Employee,
    updateServiceStaff: {
        orderId: number
        serviceStaff: string
    },
    'refresh-member-list': void,
    'member-added': any
}

const emitter = mitt<Events>()

export { emitter }
